package controllers

import (
	"arabApi/pkg/config"
	"time"
)

// BaseAPIController 基础控制器
type BaseAPIController struct {
}

func (s BaseAPIController) GetRedisTime() time.Duration {
	//return time.Minute * time.Duration(config.GetInt64("REDIS_TIME",3600))
	return time.Minute * time.Duration(config.GetInt64("REDIS_TIME", 3600)*10)
}

func (s BaseAPIController) GetSecond(s1 int64) time.Duration {
	return time.Minute * time.Duration(s1)
}
